var vm = new Vue({
	el:'#slothMain',
	data:{
		id: null,
		msgLogData: {}//日志消息
	},
	mounted() {
		var requestParams = this.util.getRequestParams();
		if(this.util.isEmpty(requestParams)){
			return;
		} else {
			this.id = requestParams.id;
		}
		if(this.util.isEmpty(this.id)){
			return;
		}
		
		this.loadMsgLog();
	},
	methods: {
		loadMsgLog : function() {
			$.ajax({
				type: "POST",
			    url: "./sloth/log/dtl/" + this.id,
                contentType: "application/json",
			    success: function(r){
			    	if(r.code === 0){
			    		if(vm.util.isEmpty(r.data)){
			    			vm.msgLogData = {};
			    		} else {
			    			vm.msgLogData = r.data;
			    		}
					} else {
						alert(r.msg);
					}
				}
			});
		},
		getDealStatusWord : function(status) {
			if("1" == status) {
				return "待处理";
			} else if("2" == status) {
				return "处理中";
			} else if("3" == status) {
				return "成功";
			} else if("4" == status) {
				return "失败";
			} else {
				return "-";
			}
		},
		resend: function(queueName){
			alert("暂不支持重新发起功能；处理队列=" + queueName + "；msgId=" + this.msgLogData.id);
		}
	}
});